//
//  YPXLoaddingView.h
//  Demo
//
//  Created by near on 16/8/10.
//  Copyright © 2017年  androidlongs. All rights reserved.
//  加载进度提示框
//  Loadding=[YPXLoaddingView initWithParentView:self.view];
//  旋转图片loadding [Loadding showLoaddingViewWithText:@"正在登录" andStyle:1];
//  系统菊花loadding [Loadding showLoaddingViewWithStyle:0];
#import <UIKit/UIKit.h>

@interface YPXLoaddingView : UIView

{
    @public
    int num;
    CGFloat angle;
    BOOL isShowLoadding;
    UIImageView * imageView;
    UILabel * label;
    CGFloat width;
    CGFloat x;
    CGFloat y,screenWidth,screenHeight;
    UIView * _parentView;
    NSString * _text;
    NSTimer * _timer;
    UIActivityIndicatorView * _activityView;
    UIView * view;
}

@property(retain,nonatomic)NSTimer * timer;
@property(copy,nonatomic) NSString * text;
@property(retain,nonatomic) UIActivityIndicatorView * activityView;

-(void)showLoaddingViewWithText:(NSString *) string;

-(void)dismissLoaddingView;

-(instancetype)initWithParentView:(UIView *) parentView;

+(id)initWithParentView:(UIView *) parentView;

-(BOOL)isShowing;

-(void)showLoaddingView;

-(void)showLoaddingViewWithStyle:(int)style;

-(void)showLoaddingViewWithText:(NSString * )text andStyle:(int)style;
-(void)updateMainFrame:(CGRect) frame;

@end
